package com.tengfei.main.question.domain.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.tengfei.common.annotation.ExcelDictFormat;
import com.tengfei.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author feige
 * @version v1.0
 * @date 2022-10-19-15:34
 * @description
 */

@Data
@ApiModel("客观题导出视图")
public class ObjExportVo implements Serializable {


    /**
     * 主键
     */
    @ExcelProperty(value = "客观题id")
    private Long objId;

    /**
     * 客观题内容
     */
    @ExcelProperty(value = "客观题内容")
    private String objContent;

    /**
     * 客观题类型
     */
    @ExcelProperty(value = "客观题类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "qb_qu_type")
    private Integer objType;

    /**
     * 难度等级
     */
    @ExcelProperty(value = "难度等级(1~5星)")
    private Integer objGrand;

    /**
     * 知识点
     */
    @ExcelProperty(value = "知识点")
    private String objTag;

    /**
     * 选项一
     */
    @ExcelProperty(value = "选项一/正确项")
    private String objOne;

    /**
     * 选项二
     */
    @ExcelProperty(value = "选项二/错误项")
    private String objTwo;

    /**
     * 选项三
     */
    @ExcelProperty(value = "选项三")
    private String objThree;

    /**
     * 选项四
     */
    @ExcelProperty(value = "选项四")
    private String objFour;

    /**
     * 答案序号
     */
    @ExcelProperty(value = "答案(多个答案用$分隔,1~4,A~D)")
    private String objAnswer;

    /**
     * 题目解析
     */
    @ExcelProperty(value = "题目解析")
    private String objAnswerContent;


    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
